<?php
	session_start();
?>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Register Form</title>
<link href="loginmodule.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../javascript/checkformuser.js"></script>

 <style type="text/css">
		.style4
        {
            height: 320px;
            width: 177px;
        }
 		.stle2
        {
            height: auto;
            width: auto;
        	border: 2px solid #4F1267;
        	padding: 2px 2px 2px 2px;
        }
        .ghk
        {
            height: 366px;
            width: 579px;
        }
 		.stle1
        {
            border: 2px #343456 solid;
        	height: 550px;
            width: 800px;
        	text-align:justify;
        	margin: 0 auto 0 auto;
        	padding-top:5px;
        	padding-bottom:10px;
        }
		
        #fname
        {
        	 height: 21px;
            width: 197px;
        }
		#lname
        {
        	height: 21px;
            width: 196px;
        }
        #email
        {
            width: 195px;
            height: 21px;
        }
        #login
        {
        	 height: 21px;
            width: 196px;
        }
        #password
        {
        	 height: 21px;
            width: 196px;
        }
        #cpassword
        {
            height: 21px;
            width: 196px;
        }
        </style>

</HEAD>
<BODY>
<div class="stle1">
<a></a>

<table  cellspacing="0" cellpadding="0" align="center">
		  	  <tr>
				    <td>
                     <a href="../index.php"> <img alt="" src="images/LogoGif.gif" style="height: 141px; width: 753px;" /></a>  
                      </td>
				</tr>
				   <tr>
					<td  style="width:676px; height:423px">
					<div class="stle2">
						<table  cellspacing="0" cellpadding="0">
						  <tr>
							<td class="style4">
								<a ><img src="images/back.gif" alt="" border="0" 
                                    style="height: 80px; width: 90px"></a><img src="images/pic1_1.gif" alt="" 
                                    style="height: 79px; width: 82px"><br>
								<img src="images/pic1_2.gif" alt="" style="height: 189px; width: 170px"><br>
								<a href=""><img src="images/comp.gif" alt="" border="0" 
                                    style="height: 90px; width: 87px"></a><a href=""><img 
                                    src="images/srv.gif" alt="" border="0" style="height: 91px; width: 82px"></a><br>
								<br> </td>								
								<td>								
									<form id="loginForm" name="loginForm" method="post" action="register-exec.php" onsubmit=" return validateForm(this)"   >
<p align="center" > <font face="Times new Roman" size=5px color=#0012FF>**Fill the form to create an account**</font></p>
  <table border="0" align="center" cellpadding="2" cellspacing="0" style="width: 328px">       
   <tr>
      <td ><font face="Times New Roman" size="4px" color=#0000FF>First Name</font> </td>
      <td ><input name="fname" type="text" class="textfield" id="fname" /></td>
     
    </tr>
     <tr><hr/></tr>
    <tr>
       <td ><font face="Times New Roman" size="4px" color=#0000FF>Last Name</font> </td>
      <td ><input name="lname" type="text" class="textfield" id="lname" /></td>
    </tr>
      <tr>
      <td  ><font face="Times New Roman" size="4px" color=#0000FF>Email</font></td>
      <td  ><input name="email" type="text" class="textfield" id="email" /></td>
    </tr>
    <tr>
      <td ><font face="Times New Roman" size="4px" color=#0000FF>Login</font></td>
      <td ><input name="login" type="text" class="textfield" id="login" /></td>
    </tr>
    <tr>
      <td ><font face="Times New Roman" size="4px" color=#0000FF>Password</font></td>
      <td ><input name="password" type="password" class="textfield" id="password" /></td>
    </tr>
    <tr>
      <td ><font face="Times New Roman" size="4px" color=#0000FF>Confirm Pass</font> </td>
      <td ><input name="cpassword" type="password" class="textfield" id="cpassword" /></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><font face="Times New Roman" size="4px" color=#0000FF><input type="submit" name="Submit" value="Register Account" /></font></td>
    </tr>
    <tr>

    </tr>
  </table>
      <?php   
	if( isset($_SESSION['ERRMSG_ARR']) && is_array($_SESSION['ERRMSG_ARR']) && count($_SESSION['ERRMSG_ARR']) >0 ) {
		echo '<ul class="err">';
		foreach($_SESSION['ERRMSG_ARR'] as $msg) {
			echo '<li>',$msg,'</li>'; 
		}
		echo '</ul>';
		unset($_SESSION['ERRMSG_ARR']);
	}
?>
</form>
                                </td>
                               
						  </tr>
						  
						</table>
						 </div>
					</td>	
				
				  </tr>
				   </table>
				</div>   
</body>
</html>
